Skip to content

Add SMA to trend.py#1

Open
Hopelezz wants to merge 5 commits intoChristopherStrom:masterfrom
Hopelezz:master
Open

Add SMA to trend.py#1
Hopelezz wants to merge 5 commits intoChristopherStrom:masterfrom
Hopelezz:master

Conversation

@Hopelezz
Copy link

Simple Moving Average: smooth out price data by creating a constantly updated average price

(Close prices over "n" period)/n = SMA

  • The SMA helps to identify trends by filtering out the noise from random price fluctuations.
  • It provides a clearer view of the asset's price direction over time.

Hopelezz added 5 commits June 11, 2024 12:23
This now allows you to set the depth of the historical data rather than infinite which could cause memory issues for long periods.
Forgot to add numpy
Simple Moving Average: smooth out price data by creating a constantly updated average price

(Close prices over "n" period)/n = SMA

* The SMA helps to identify trends by filtering out the noise from random price fluctuations.
* It provides a clearer view of the asset's price direction over time.
Update trends.py with SMA alternative
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant